package com.mszl.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.io.Serializable;

/**
 * (Article)实体类
 *
 * @author makejava
 * @since 2025-07-31 23:10:59
 */
@Data
@TableName("ms_article") // 只需指定表名
public class Article implements Serializable {
    private static final long serialVersionUID = 678677750908042143L;

    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    private Long id;
/**
     * 评论数量
     */

    private Integer commentCounts;
/**
     * 创建时间
     */
    private Long createDate;
/**
     * 简介
     */
    private String summary;
/**
     * 标题
     */
    private String title;
/**
     * 浏览数量
     */

    private Integer viewCounts;
/**
     * 是否置顶
     */
    private Integer weight= Article_Common;
/**
     * 作者id
     */
    private Long authorId;
/**
     * 内容id
     */
    private Long bodyId;
/**
     * 类别id
     */
    private Integer categoryId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCommentCounts() {
        return commentCounts;
    }

    public void setCommentCounts(Integer commentCounts) {
        this.commentCounts = commentCounts;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getViewCounts() {
        return viewCounts;
    }

    public void setViewCounts(Integer viewCounts) {
        this.viewCounts = viewCounts;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public Long getBodyId() {
        return bodyId;
    }

    public void setBodyId(Long bodyId) {
        this.bodyId = bodyId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

}

